package com.tgsoft.kdcloud.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 用户
 *
 * @author 阿沐 babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Data
@AllArgsConstructor
@Schema(description = "即时库存表")
public class MoVo implements Serializable {
    private static final long serialVersionUID = 1L;


    @Schema(description = "生产订单编码")
    private String mobillno;

    @Schema(description = "日期")
    private String date;

    @Schema(description = "明细")
    private MoEntry entity;

    class MoEntry implements Serializable {
        @Schema(description = "mobillno")
        private String materialNo;

        @Schema(description = "date")
        private String materialName;

        @Schema(description = "Entity")
        private String unitNo;

        @Schema(description = "计量单位名称")
        private String unitName;

        @Schema(description = "仓库编码", required = true)
        private String stockNo;

        @Schema(description = "仓库名称", required = true)
        private String stockName;

        @Schema(description = "库存状态编码")
        private String stockStatusNo;

        @Schema(description = "库存状态名称")
        private String stockStatusName;




        @Schema(description = "规格型号")
        private String model;

        //@Schema(description = "性别 0：男   1：女   2：未知", required = true)
        //@Range(min = 0, max = 2, message = "性别不正确")
        @Schema(description = "数量", required = true)
        private String Qty;

        @Schema(description = "批次")
        //@Email(message = "邮箱格式不正确")
        private String lot;

    }



    public List<MoVo> getInvVoListFromJson(String json) {
        List<MoVo> invVoList = new ArrayList<>();
        return invVoList;
    }
}
